<?php 
class Common_model extends CI_Model{
	function __construct(){
		parent::__construct();
	}

/**
 * get_blog_list 获取博客列表
 */
public function get_rows_by_index($table,$data){
	$query = $this->db->get_where($table,$data);
	return $query->result();
}
public function get_rows_by_index_arr($table,$data){
	$query = $this->db->get_where($table,$data);
	return $query->result_array();
}


}